<%--
  Created by IntelliJ IDEA.
  User: yutao
  Date: 2017/5/2
  Time: 16:10
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file=".././common/taglibs.jsp" %>
<html>
<head>
    <title>Title</title>
    <script src="${ctx}/js/views/specially/merchContrast.js"></script>
</head>
<body ng-app="myApp" style="overflow:scroll;overflow-x:hidden">
<core:import url="../common/pageHead.jsp">
    <core:param name="title" value="商户信息对比协查"/>
</core:import>
<div ng-controller="queryCtrl" class="container-fluid">
    <form id="queryForm" name="queryForm" action="${ctx}/informationPush/merchantInfoComPush/search" autocomplete="off">
        <table class="table table-bordered table-condensed">
            <tr>
                <td class="text-right">
                    商户名称
                </td>
                <td>
                    <input type="text" ng-model="vm.queryBean.regName" class="{{vm.constant.inputClass}}">
                </td>
                <td class="text-right">
                    商户代码
                </td>
                <td>
                     <input type="text" ng-model="vm.queryBean.cusCode" class="{{vm.constant.inputClass}}">
                </td>
                <td class="text-right">
                    推送日期
                </td>
                <td>
                    <input type="text" class="form-control" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="vm.queryBean.createDate"/>
                </td>
            </tr>
            <tr align="center">
                <td colspan="6">
                    <button type="button" ng-click="vm.queryDetail()" class="btn btn-default">查询</button>
                    <button type="button" ng-click="vm.resetForm()" class="btn btn-default">重置</button>
                </td>
            </tr>
        </table>
    </form>

    <div>
        <table table-detail>
            <thead>
            <tr>
                <th>商户代码</th>
                <th>商户名称</th>
                <th>法定代表人（负责人）姓名</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody ng-repeat="bean in vm.pagination.list track by $index">
            <tr>
                <td>{{bean.cusCode}}</td>
                <td>{{bean.regName}}</td>
                <td>{{bean.legDocName}}</td>
                <td><button  ng-click="vm.queryMerchDetail(bean)">查看对比</button></td>
            </tbody>
        </table>
    </div>

    <core:import url="../common/pageFoot.jsp"/>
</div>
<core:import url="../common/nav.jsp"/>
</body>
</html>
